package com.hilinos.gb.gb28181.repository.mysql.mapper.po;

import lombok.*;

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class Host {
    private String ip;
    private Integer port;
    @Getter(AccessLevel.NONE)
    @Setter(AccessLevel.NONE)
    private String address;

    public String getAddress() {
        return ip.concat(":").concat(String.valueOf(port));
    }
}
